<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>history</title>
</head>

<body>
  <!-- 注意: history的函数必须在产生历史后方可执行成功!!! -->
  <!-- 
    back()函数表示返回
    forward()函数表示前进
    go(n)函数通过传入正负来表示前进n页或者后退n页 
  -->
  <a href="58.bom-history2.html">下一页</a>
  <a href="javascript:history.forward()">下一页</a>
  <script>
    //console.log(window.history.length);
  </script>
</body>

</html>